
import com.icbc.dataDisplayService.bean.Car;
import com.icbc.dataDisplayService.bean.GPS;
import com.icbc.dataDisplayService.service.CarDataService;
import com.icbc.dataDisplayService.service.GPSdataService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import java.util.List;

public class TestMain {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:xml/mybatis/applicationContext-MFBean.xml");
        CarDataService carDataService = (CarDataService) ac.getBean("carDataService");
        int carDataList = carDataService.countAllCar();
        System.out.println(carDataList);
    }
}
